import axios from '~/axios'

export function getRuleList(){
    return axios.get(`/admin/rule/1`);
}

export function createRule(data){
    return axios.post(`/admin/rule`,data);
}

export function editRule(id,data){
    return axios.post(`/admin/rule/${id}`,data);
}

export function deleteRule(id){
    return axios.post(`/admin/rule/${id}/delete`);
}

export function upateRuleStatus(id,status){
    return axios.post(`/admin/rule/${id}/update_status`,{status});
}